package com.yishusmt.mobsmt.service;

import com.yishusmt.mobsmt.dto.base.Result;
import com.yishusmt.mobsmt.dto.request.EditPasswordReq;
import com.yishusmt.mobsmt.dto.request.UserInfoReq;
import com.yishusmt.mobsmt.dto.response.UserRes;
import com.yishusmt.mobsmt.entity.UserEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户管理服务
 *
 * @author zhangyi
 * @date 2018/8/14 17:37
 */
public interface UserManageService {

    /**
     *  获取用户详细信息
     *
     * @param phone
     * @return
     */
    Result getUserInfo(String phone);

    /**
     * 编辑用户信息
     *
     * @param userRes
     * @return
     */
    Result editUserInfo(UserInfoReq userRes);

    /**
     * 修改密码
     *
     * @param editPasswordReq
     * @return
     */
    Result editPassword(EditPasswordReq editPasswordReq);

    /**
     * 绑定手机或者邮箱
     *
     * @param phone
     * @param contact
     * @return
     */
    Result bing(String phone,String contact);
}
